package com.group.eams.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.group.eams.pojo.dto.FixedAssetDetailQueryDto;
import com.group.eams.pojo.dto.PurchaseAcceptQueryDto;
import com.group.eams.pojo.entity.PurchaseAccept;
import com.group.eams.pojo.entity.PurchaseOrder;
import com.group.eams.pojo.vo.FixedAssetDetailListVo;
import com.group.eams.pojo.vo.PurchaseAcceptListVo;
import org.apache.ibatis.annotations.Param;

/**
* @author 恩哲欣
* @description 针对表【purchase_accept(采购验收表)】的数据库操作Mapper
* @createDate 2024-10-29 16:09:34
* @Entity com.group.eams.pojo.entity.PurchaseAccept
*/
public interface PurchaseAcceptMapper extends BaseMapper<PurchaseAccept> {

    Page<PurchaseAcceptListVo> findPurchaseAcceptList(Page<PurchaseAccept> page,
                                                      @Param("purchaseAcceptQueryDto")
                                                      PurchaseAcceptQueryDto purchaseAcceptQueryDto);
    //根据单号查订单验收信息
    PurchaseAccept findByApplicationNum(String applicationNum);

    //查询订单验收资产详情
    Page<FixedAssetDetailListVo> findByQueryDto(Page<FixedAssetDetailListVo> page,
                                                @Param("fixedAssetDetailQueryDto")
                                                FixedAssetDetailQueryDto fixedAssetDetailQueryDto);
}
